module.exports = {
  value: {
    type: [String, Number, Boolean, Array, Object],
    default: '',
    name: '选定值',
    filedType: 'value'
  },

  multiple: {
    type: String,
    default: false,
    name: '开启多选',
    filedType: 'switch'
  },

  labelWidth: {
    type: String,
    default: '5em',
    name: '标题宽度',
    nameTip: '建议用em单位显示几个字',
    filedType: 'string'
  },

  title: {
    type: String,
    default: '',
    name: '标题',
    filedType: 'string'
  },
  titleWeight: {
    type: String,
    default: '700',
    name: '标题粗细',
    filedType: 'string'
  },
  titleHeight: {
    type: String,
    default: '26px',
    name: '标题行高',
    filedType: 'string'
  },

  size: {
    type: String,
    default: 'medium',
    name: '输入框尺寸',
    filedType: 'select',
    options: [
      {
        name: '小尺寸',
        value: 'small'
      },
      {
        name: '中尺寸',
        value: 'medium'
      },
      {
        name: 'mini',
        value: 'mini'
      }
    ]
  },

  placeholder: {
    type: String,
    default: '请选择',
    name: '占位文本',
    filedType: 'string'
  },

  filterable: {
    type: Boolean,
    default: false,
    name: '是否可搜索',
    filedType: 'switch'
  },
  disabled: {
    type: Boolean,
    default: false,
    name: '禁用',
    filedType: 'switch'
  },
  clearable: {
    type: Boolean,
    default: false,
    name: '是否可清空',
    filedType: 'switch'
  },
  multiplelimit: {
    type: String,
    default: '0',
    name: '最多可选项目数',
    filedType: 'string'
  },
  autocomplete: {
    type: String,
    default: 'off',
    name: '自动补全',
    filedType: 'select',
    options: [
      {
        name: 'on',
        value: 'on'
      },
      {
        name: 'off',
        value: 'off'
      }
    ]
  },
  collapsetags: {
    type: Boolean,
    default: false,
    name: '多选时选中值按文字展示',
    filedType: 'switch'
  },
  allowcreate: {
    type: Boolean,
    default: false,
    name: '允许用户创建新条目',
    filedType: 'switch'
  },
  nomatchtext: {
    type: String,
    default: 'off',
    name: '无匹配数据',
    filedType: 'string'
  },
  nodatatext: {
    type: String,
    default: '无数据',
    name: '选项为空时的文字',
    filedType: 'string'
  },
  defaultfirst: {
    type: Boolean,
    default: false,
    name: '允许用户创建新条目',
    filedType: 'switch'
  },

  color: {
    type: String,
    default: '#333',
    name: '文本颜色',
    filedType: 'color'
  },

  bgColor: {
    type: String,
    default: '#ffffff',
    name: '背景色',
    filedType: 'color'
  },

  borderColor: {
    type: String,
    default: '#e4e7ed',
    name: '边框色',
    filedType: 'color'
  },

  dropdownBgColor: {
    type: String,
    default: '#ffffff',
    name: '下拉框背景色',
    filedType: 'color'
  },

  dropdownBorderColor: {
    type: String,
    default: '#e4e7ed',
    name: '下拉框边框色',
    filedType: 'color'
  },

  dropdownItemHoverBg: {
    type: String,
    default: '#f5f7fa',
    name: '下拉选项滑过背景',
    filedType: 'color'
  },

  dropdownItemHoverTextColor: {
    type: String,
    default: '#666666',
    name: '下拉选项滑过文本颜色',
    filedType: 'color'
  },

  options: {
    type: Array,
    default () {
      return [
        {
          label: '列表项1',
          value: '1'
        },
        {
          label: '列表项2',
          value: '2'
        }
      ]
    },
    name: '下拉列表',
    filedType: 'api'
  },

  validValue: {
    type: Boolean,
    default: false,
    name: '数据校验',
    filedType: 'switch'
  },
  validRules: {
    type: Array,
    default () {
      return [
        { required: true, message: '请输入活动名称', trigger: 'blur' },
        { disabled: false, message: '禁用输入框' }
      ]
    },
    name: '校验规则',
    filedType: 'api',
    vif: {
      key: 'validValue',
      value: true
    }
  }
}
